package com.swordget.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;

/**
 * @Author: David
 * @Date: Created in 14:13 2020/03/26
 * @Description: 数据表 字段信息结构
 * @Modified By:
 * @Version: 0.0.1
 */
@Data
@Builder
@AllArgsConstructor
public class ColumnDesign {


  /**
   * 字段名
   */
  private String name;

  /**
   * 字段类型
   */
  private String type;

  /**
   * 字段长度
   */
  private int width;

  /**
   * 字段比例
   */
  private int point;

  /**
   * 不为空
   */
  private String notNull;

  /**
   * 不可重复
   */
  private String notRepeat;


  /**
   * 文本框类型
   */
  private String contextType;

  /**
   * 日期格式
   */
  private String dateFormat;
  /*  private String tableid;
    private String tableorder;*/

  /**
   * 字段注释
   */
  private String comment;

  /**
   * 是否搜索条件
   */
  private String search;

  /**
   * 下拉框url
   */
  private String comboUrl;

  /**
   * 是否隐藏字段
   */
  private String isHidden;

  /**
   * 是否业务字段
   */
  private String isBusiness;

  /**
   * 序号
   */
  private String serialNo;

  @Override
  public String toString() {
    return "ColumnDesign{" +
            "name='" + name + '\'' +
            ", type='" + type + '\'' +
            ", width=" + width +
            ", point=" + point +
            ", notNull='" + notNull + '\'' +
            ", notRepeat='" + notRepeat + '\'' +
            ", contextType='" + contextType + '\'' +
            ", dateFormat='" + dateFormat + '\'' +
            ", comment='" + comment + '\'' +
            ", search='" + search + '\'' +
            ", comboUrl='" + comboUrl + '\'' +
            ", isHidden='" + isHidden + '\'' +
            ", isBusiness='" + isBusiness + '\'' +
            '}';
  }
}
